import { GET, POST, UPLOAD } from '@/services/request'

export default {
    register(data = {}) {
        return POST({
            // /shop/business/base/register
            url: '/business/base/register',
            params: data
        })
    },
    login(data = {}) {
        return POST({
            url: '/business/base/login',
            params: data
        })
    },
    check(data = {}) {
        return POST({
            url: '/business/base/check',
            params: data
        })
    },
    profile(data = {}) {
        return UPLOAD({
            url: '/business/base/profile',
            params: data
        })
    },
    collection(data = {}) {
        return POST({
            url: '/business/base/collection',
            params: data
        })
    },
    send(data = {}) {
        return POST({
            url: '/business/emailValidate/send',
            params: data
        })
    },
    emailAuth(data = {}) {
        return POST({
            url: '/business/emailValidate/email',
            params: data
        })
    }
}